// Copyright (c) Appeon. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. 
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.

namespace SnapObjects.Data
{
    public interface IJoinTable
    {
        /// <summary>
        /// 
        /// </summary>
        int Id { get; }

        /// <summary>
        ///     Gets or sets the schema of the table to join.
        /// </summary>
        string Schema { get; }

        /// <summary>
        ///     Gets the name of the table to join.
        /// </summary>
        string Name { get; }

        /// <summary>
        ///     Gets the alias of the table to join.
        /// </summary>
        string Alias { get; }

        /// <summary>
        ///     Gets or sets the raw SQL search condition on which the join is based.
        /// </summary>
        string OnRaw { get; }

        /// <summary>
        ///     Gets or sets the type of join operator.
        /// </summary>
        SqlJoinType JoinType { get; }

        /// <summary>
        ///     Gets whether the table to join has an alias or not.
        /// </summary>
        bool AliasDefined { get; }
    }
}
